package org.melanesia.beans.validation.exceptions;


/**
 * Exception thrown when bean validation fails.
 *
 * @author marcin.kielar
 */
public class ValidationException extends Exception {

    /** Serial version uid for serialization. */
    private static final long serialVersionUID = -3812522601245631190L;

    /**
     * Constructs ValidationException with detail message.
     *
     * @param message
     *            message
     */
    public ValidationException(final String message) {
        super(message);
    }

    /**
     * Constructs ValidationException with detail message and a cause.
     *
     * @param message
     *            message
     * @param cause
     *            the cause
     */
    public ValidationException(final String message, final Throwable cause) {
        super(message, cause);
    }
}
